package vow.gui.models;

import java.util.List;

import javax.swing.AbstractListModel;

import ontology.models.negotiation.Part;

public class PartieListModel extends AbstractListModel{

	private List<Part> parties;
	
	public PartieListModel(List<Part> parties){
		this.parties = parties;
	}
	
	@Override
	public int getSize() {
		return parties.size();
	}

	@Override
	public Object getElementAt(int index) {
		return parties.get(index);
	}
	
}
